lcBlockAddImageRefUns Home

Adds a new image reference object into a block. The image will be unscalable. Unscalable image always has constant visual size in a window, even if visual size of a drawing was changed.

 HANDLE lcBlockAddImageRefUns (
   HANDLE hBlock,
   HANDLE hImage,
   double X,
   double Y,
   double Scale,
   int Align,
   BOOL bBorder
 );

Parameters
hBlock
  Handle to a block.
hImage
  Handle to the image definition.
X Y
  Coordinates of image insertion.
Scale
  Constant scale. For example, original size of the image is 100x100 pixels. If you set the scale value = 0.5, then image will be drawn in a window with size 50x50 pixels.
Align
  Image alignment relative to the insertion point. Can be one of the following values:

Value Point size
LC_IMGA_CENTER Center point
LC_IMGA_LEFBOT Left Bottom corner
LC_IMGA_RIGBOT Right Bottom corner
LC_IMGA_LEFTOP Left Top corner
LC_IMGA_RIGTOP Right Top corner

bBorder
  If TRUE, then the image will have a border lines.

Return Value

  Handle to created image reference object or NULL if the function fails.

See Also

  Image definition,   lcBlockAddImageRef